<?php 
		echo $this->load->view('training/infotable', $data, TRUE);
?>

<?php echo form_open('training/add_details_submit','',array('training_id' => $data['training']->id,));?>
	<fieldset>
		<legend>Termine</legend>
		<table class="table">
			<tr>
				<th></th>
				<th>1. Termin</th>
				<th>2. Termin</th>
				<th>3. Termin</th>
			</tr>
			<tr>
				<td>Datum - Von:</td>
				<td><input type="text" name="termin[1][date][from]" class="datepicker" autocomplete="off"/></td>
				<td><input type="text" name="termin[2][date][from]" class="datepicker" autocomplete="off"/></td>
				<td><input type="text" name="termin[3][date][from]" class="datepicker" autocomplete="off"/></td>
			</tr>
			<tr>
				<td>Datum - Bis:</td>
				<td><input type="text" name="termin[1][date][till]" class="datepicker" autocomplete="off"/></td>
				<td><input type="text" name="termin[2][date][till]" class="datepicker" autocomplete="off"/></td>
				<td><input type="text" name="termin[3][date][till]" class="datepicker" autocomplete="off"/></td>
			</tr>
			<tr>
				<td>Uhrzeit - Von:</td>
				<td><?php echo form_time('termin[1][time][from]');?></td>
				<td><?php echo form_time('termin[2][time][from]');?></td>
				<td><?php echo form_time('termin[3][time][from]');?></td>
			</tr>
			<tr>
				<td>Uhrzeit - Bis:</td>
				<td><?php echo form_time('termin[1][time][till]');?></td>
				<td><?php echo form_time('termin[2][time][till]');?></td>
				<td><?php echo form_time('termin[3][time][till]');?></td>
			</tr>
			<tr>
				<td>Datum - Deadline: </td>
				<td><input type="text" name="termin[1][date][deadline]" class="datepicker" autocomplete="off"/></td>
				<td><input type="text" name="termin[2][date][deadline]" class="datepicker" autocomplete="off"/></td>
				<td><input type="text" name="termin[3][date][deadline]" class="datepicker" autocomplete="off"/></td>
			</tr>
		</table>
	</fieldset>
	<fieldset>
		<legend>Daten</legend>
			<table class="table" >
			<tr>
				<td>Standort: </td>
				<td><?php echo form_dropdown('place_id',$places_arr); ?></td>
			</tr>
			<tr>
				<td>Trainer:</td>
				<td><?php echo form_dropdown('trainer_id',$trainer_arr); ?></td>
			</tr>
			<tr>
				<td>Max. Teilnehmer:</td>
				<td><input type="text" class="span1" name="max_attendees" autocomplete="off"/></td>
			</tr>
		</table>
	</fieldset>
	<fieldset>
		<legend></legend>
		<?php echo form_input(array('name' => 'submit','value' => 'Eintragen', 'type' => 'submit', 'class' => 'btn btn-success', 'style' => 'float:right;')); ?>
	</fieldset>
<?php echo form_close(); ?>